package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TbSystemModel entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_system_model", catalog = "imcdbserver")
public class TbSystemModel implements java.io.Serializable {

	// Fields

	private Integer smId;
	private String smName;
	private String smDescrible;
	private String smCname;
	private Integer smParentid;
	private short smLevel;
	private short smIsclient;

	// Constructors

	/** default constructor */
	public TbSystemModel() {
	}

	/** minimal constructor */
	public TbSystemModel(Integer smParentid) {
		this.smParentid = smParentid;
	}

	/** full constructor */
	public TbSystemModel(String smName, String smDescrible, String smCname,
			Integer smParentid, short smLevel, short smIsclient) {
		this.smName = smName;
		this.smDescrible = smDescrible;
		this.smCname = smCname;
		this.smParentid = smParentid;
		this.smLevel = smLevel;
		this.smIsclient = smIsclient;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "sm_id", unique = true, nullable = false)
	public Integer getSmId() {
		return this.smId;
	}

	public void setSmId(Integer smId) {
		this.smId = smId;
	}

	@Column(name = "sm_name", length = 100)
	public String getSmName() {
		return this.smName;
	}

	public void setSmName(String smName) {
		this.smName = smName;
	}

	@Column(name = "sm_describle", length = 100)
	public String getSmDescrible() {
		return this.smDescrible;
	}

	public void setSmDescrible(String smDescrible) {
		this.smDescrible = smDescrible;
	}

	@Column(name = "sm_cname", length = 100)
	public String getSmCname() {
		return this.smCname;
	}

	public void setSmCname(String smCname) {
		this.smCname = smCname;
	}

	@Column(name = "sm_parentid", nullable = false)
	public Integer getSmParentid() {
		return this.smParentid;
	}

	public void setSmParentid(Integer smParentid) {
		this.smParentid = smParentid;
	}

	@Column(name = "sm_level")
	public short getSmLevel() {
		return this.smLevel;
	}

	public void setSmLevel(short smLevel) {
		this.smLevel = smLevel;
	}

	@Column(name = "sm_isclient")
	public short getSmIsclient() {
		return this.smIsclient;
	}

	public void setSmIsclient(short smIsclient) {
		this.smIsclient = smIsclient;
	}

}